package com.newsmanagement.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.newsmanagement.domain.pojo.WholBatch;

import java.util.List;

/**
 * @author adim
 * @description 针对表【whol_batch(批发商产品批号信息表)】的数据库操作Service
 * @createDate 2025-10-11 15:17:30
 */
public interface WholBatchService extends IService<WholBatch> {
    boolean checkBatchIdExists(String batchId);

    List<WholBatch> getByState(Integer state);

    boolean addWholBatch(WholBatch wholBatch);

    // 分页查询批发商批号
    IPage<WholBatch> pageQuery(Page<WholBatch> page, Integer wholId, Integer state, String type);

    // 根据批发商ID查询所有批号
    List<WholBatch> getByWholId(Integer wholId);
    
    // 根据批发商ID和状态查询批号
    List<WholBatch> getByWholIdAndState(Integer wholId, Integer state);
}